<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Channel Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__dmac__channel__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Channel Functions<div class="ingroups"><a class="el" href="group__group__dmac.html">DMAC         (Direct Memory Access Controller)</a> &raquo; <a class="el" href="group__group__dmac__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga7b508e6cc332b4d009bf9b09ed6529b3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__dmac__enums.html#ga67fe9048608517c9cdebbe0372866eb5">cy_en_dmac_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga7b508e6cc332b4d009bf9b09ed6529b3">Cy_DMAC_Channel_Init</a> (DMAC_Type *base, uint32_t channel, <a class="el" href="structcy__stc__dmac__channel__config__t.html">cy_stc_dmac_channel_config_t</a> const *config)</td></tr>
<tr class="memdesc:ga7b508e6cc332b4d009bf9b09ed6529b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the DMAC channel with a descriptor and other parameters.  <a href="#ga7b508e6cc332b4d009bf9b09ed6529b3">More...</a><br /></td></tr>
<tr class="separator:ga7b508e6cc332b4d009bf9b09ed6529b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaac669d8281a624e28c436e7ff8588ac3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#gaac669d8281a624e28c436e7ff8588ac3">Cy_DMAC_Channel_DeInit</a> (DMAC_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:gaac669d8281a624e28c436e7ff8588ac3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the content of registers corresponding to the channel.  <a href="#gaac669d8281a624e28c436e7ff8588ac3">More...</a><br /></td></tr>
<tr class="separator:gaac669d8281a624e28c436e7ff8588ac3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0ea7589df07e40e6723dc7f992e6994b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga0ea7589df07e40e6723dc7f992e6994b">Cy_DMAC_Channel_SetDescriptor</a> (DMAC_Type *base, uint32_t channel, <a class="el" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> const *descriptor)</td></tr>
<tr class="memdesc:ga0ea7589df07e40e6723dc7f992e6994b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a descriptor as current for the specified DMACchannel.  <a href="#ga0ea7589df07e40e6723dc7f992e6994b">More...</a><br /></td></tr>
<tr class="separator:ga0ea7589df07e40e6723dc7f992e6994b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab39e11c3ad72ebfd07cdd9840385769b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#gab39e11c3ad72ebfd07cdd9840385769b">Cy_DMAC_Channel_Enable</a> (DMAC_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:gab39e11c3ad72ebfd07cdd9840385769b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables a DMAC channel.  <a href="#gab39e11c3ad72ebfd07cdd9840385769b">More...</a><br /></td></tr>
<tr class="separator:gab39e11c3ad72ebfd07cdd9840385769b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae46d7a93ef597de25a50159b615fcaf1"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#gae46d7a93ef597de25a50159b615fcaf1">Cy_DMAC_Channel_Disable</a> (DMAC_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:gae46d7a93ef597de25a50159b615fcaf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables a DMACchannel.  <a href="#gae46d7a93ef597de25a50159b615fcaf1">More...</a><br /></td></tr>
<tr class="separator:gae46d7a93ef597de25a50159b615fcaf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4423c4dbc11bb51cb622e95fb593ee9c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga4423c4dbc11bb51cb622e95fb593ee9c">Cy_DMAC_Channel_IsEnabled</a> (DMAC_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga4423c4dbc11bb51cb622e95fb593ee9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether a DMAC channel is in the enabled state.  <a href="#ga4423c4dbc11bb51cb622e95fb593ee9c">More...</a><br /></td></tr>
<tr class="separator:ga4423c4dbc11bb51cb622e95fb593ee9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4e68ab04d5de2d6a1b31779741aa64db"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga4e68ab04d5de2d6a1b31779741aa64db">Cy_DMAC_Channel_SetPriority</a> (DMAC_Type *base, uint32_t channel, uint32_t priority)</td></tr>
<tr class="memdesc:ga4e68ab04d5de2d6a1b31779741aa64db"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function is used to set a priority for the DMAC channel.  <a href="#ga4e68ab04d5de2d6a1b31779741aa64db">More...</a><br /></td></tr>
<tr class="separator:ga4e68ab04d5de2d6a1b31779741aa64db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc275a614e5307f13e86a1d0c07e0af5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#gafc275a614e5307f13e86a1d0c07e0af5">Cy_DMAC_Channel_GetPriority</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:gafc275a614e5307f13e86a1d0c07e0af5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the priority of the DMAC channel.  <a href="#gafc275a614e5307f13e86a1d0c07e0af5">More...</a><br /></td></tr>
<tr class="separator:gafc275a614e5307f13e86a1d0c07e0af5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga468ad1b43f0a513ad9a44540c6c74d7d"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga468ad1b43f0a513ad9a44540c6c74d7d">Cy_DMAC_Channel_GetCurrentSrcAddress</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga468ad1b43f0a513ad9a44540c6c74d7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the source address being used for the current transfer.  <a href="#ga468ad1b43f0a513ad9a44540c6c74d7d">More...</a><br /></td></tr>
<tr class="separator:ga468ad1b43f0a513ad9a44540c6c74d7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8926ea9fbc04fb333847315e95616857"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga8926ea9fbc04fb333847315e95616857">Cy_DMAC_Channel_GetCurrentDstAddress</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga8926ea9fbc04fb333847315e95616857"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the destination address being used for the current transfer.  <a href="#ga8926ea9fbc04fb333847315e95616857">More...</a><br /></td></tr>
<tr class="separator:ga8926ea9fbc04fb333847315e95616857"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga365daa47786294138cded1ab197188ed"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga365daa47786294138cded1ab197188ed">Cy_DMAC_Channel_GetCurrentXloopIndex</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga365daa47786294138cded1ab197188ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current transfer X-loop index.  <a href="#ga365daa47786294138cded1ab197188ed">More...</a><br /></td></tr>
<tr class="separator:ga365daa47786294138cded1ab197188ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga72778e6c03802db725de390a07fa723a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga72778e6c03802db725de390a07fa723a">Cy_DMAC_Channel_GetCurrentYloopIndex</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga72778e6c03802db725de390a07fa723a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current transfer X-loop index.  <a href="#ga72778e6c03802db725de390a07fa723a">More...</a><br /></td></tr>
<tr class="separator:ga72778e6c03802db725de390a07fa723a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafef0482f395c9f32a193e75edfd22c79"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#gafef0482f395c9f32a193e75edfd22c79">Cy_DMAC_Channel_GetCurrentDescriptor</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:gafef0482f395c9f32a193e75edfd22c79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the descriptor that is active in the channel.  <a href="#gafef0482f395c9f32a193e75edfd22c79">More...</a><br /></td></tr>
<tr class="separator:gafef0482f395c9f32a193e75edfd22c79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7fe55ddff581132a9d35f03cd5941cf8"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga7fe55ddff581132a9d35f03cd5941cf8">Cy_DMAC_Channel_GetInterruptStatus</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga7fe55ddff581132a9d35f03cd5941cf8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interrupt status of the specified channel.  <a href="#ga7fe55ddff581132a9d35f03cd5941cf8">More...</a><br /></td></tr>
<tr class="separator:ga7fe55ddff581132a9d35f03cd5941cf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga31fbd71a93ff4332b8e8df56090f9423"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga31fbd71a93ff4332b8e8df56090f9423">Cy_DMAC_Channel_ClearInterrupt</a> (DMAC_Type *base, uint32_t channel, uint32_t interrupt)</td></tr>
<tr class="memdesc:ga31fbd71a93ff4332b8e8df56090f9423"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the interrupt status of the specified channel.  <a href="#ga31fbd71a93ff4332b8e8df56090f9423">More...</a><br /></td></tr>
<tr class="separator:ga31fbd71a93ff4332b8e8df56090f9423"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae757bfd061a11f8fbad9057547620087"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#gae757bfd061a11f8fbad9057547620087">Cy_DMAC_Channel_SetInterrupt</a> (DMAC_Type *base, uint32_t channel, uint32_t interrupt)</td></tr>
<tr class="memdesc:gae757bfd061a11f8fbad9057547620087"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the interrupt for the specified channel.  <a href="#gae757bfd061a11f8fbad9057547620087">More...</a><br /></td></tr>
<tr class="separator:gae757bfd061a11f8fbad9057547620087"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5fd4fbeb489ac0c97168e67064d6693b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga5fd4fbeb489ac0c97168e67064d6693b">Cy_DMAC_Channel_GetInterruptMask</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga5fd4fbeb489ac0c97168e67064d6693b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interrupt mask value of the specified channel.  <a href="#ga5fd4fbeb489ac0c97168e67064d6693b">More...</a><br /></td></tr>
<tr class="separator:ga5fd4fbeb489ac0c97168e67064d6693b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae0485c56ffe98283f8b9326ee6d516ae"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#gae0485c56ffe98283f8b9326ee6d516ae">Cy_DMAC_Channel_SetInterruptMask</a> (DMAC_Type *base, uint32_t channel, uint32_t interrupt)</td></tr>
<tr class="memdesc:gae0485c56ffe98283f8b9326ee6d516ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets an interrupt mask value for the specified channel.  <a href="#gae0485c56ffe98283f8b9326ee6d516ae">More...</a><br /></td></tr>
<tr class="separator:gae0485c56ffe98283f8b9326ee6d516ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga586bd262ab7725b4588dde9516c88b1e"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__dmac__channel__functions.html#ga586bd262ab7725b4588dde9516c88b1e">Cy_DMAC_Channel_GetInterruptStatusMasked</a> (DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga586bd262ab7725b4588dde9516c88b1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the logical AND of the corresponding INTR and INTR_MASK fields in a single-load operation.  <a href="#ga586bd262ab7725b4588dde9516c88b1e">More...</a><br /></td></tr>
<tr class="separator:ga586bd262ab7725b4588dde9516c88b1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga7b508e6cc332b4d009bf9b09ed6529b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7b508e6cc332b4d009bf9b09ed6529b3">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__dmac__enums.html#ga67fe9048608517c9cdebbe0372866eb5">cy_en_dmac_status_t</a> Cy_DMAC_Channel_Init </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__dmac__channel__config__t.html">cy_stc_dmac_channel_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the DMAC channel with a descriptor and other parameters. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>A channel number.</td></tr>
    <tr><td class="paramname">config</td><td>The structure that has the initialization information for the channel.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status /ref cy_en_dmac_status_t.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">    #define DATA_COUNT (8UL)</span></div><div class="line">    <span class="comment">/* Scenario: Initialize a 1D descriptor */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> descriptor;</div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> nextDescriptor;</div><div class="line">    uint32_t src[DATA_COUNT];</div><div class="line">    uint32_t dst[DATA_COUNT];</div><div class="line">    </div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__config__t.html">cy_stc_dmac_descriptor_config_t</a> descriptor_cfg = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__dmac__enums.html#gga016be77931e116644c70e934101dd7c3ab796353bb8bb6f244bb8f6d94d002396">CY_DMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__dmac__enums.html#gga0e57c8ab013d71005b81e60c2c4ee7a9acbff6554ce23780e0fcf2af9e97816cc">CY_DMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .dataSize = <a class="code" href="group__group__dmac__enums.html#ggac2fda05300faa05ecfc118f22ed2a3c5ad4112bd05bdc21a993b63b0957bfacf8">CY_DMAC_WORD</a>,</div><div class="line">        .srcTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .dstTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__dmac__enums.html#ggafc067b535081b9cd83fa29b9e68b002ca700cc18061eb5de2f16f3dc1ee96fbe8">CY_DMAC_1D_TRANSFER</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATA_COUNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">    };</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__descriptor__functions.html#gad4204ef079b02d9afdd9328f0cd461f9">Cy_DMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Setup and enable the DMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__channel__config__t.html">cy_stc_dmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#a01cab162709493ed756b6cb21219ff51">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#ade9585ff561af6ad292932293e0bd15d">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__channel__functions.html#ga7b508e6cc332b4d009bf9b09ed6529b3">Cy_DMAC_Channel_Init</a>(DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga0ea7589df07e40e6723dc7f992e6994b">Cy_DMAC_Channel_SetDescriptor</a>(DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga4e68ab04d5de2d6a1b31779741aa64db">Cy_DMAC_Channel_SetPriority</a>(DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gab39e11c3ad72ebfd07cdd9840385769b">Cy_DMAC_Channel_Enable</a>(DMAC, 0UL);</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__block__functions.html#ga3f45f389340c3282c59d6ffe6e5040b5">Cy_DMAC_Enable</a>(DMAC);</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<span class="keyword">true</span> != <a class="code" href="group__group__dmac__channel__functions.html#ga4423c4dbc11bb51cb622e95fb593ee9c">Cy_DMAC_Channel_IsEnabled</a>(DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaac669d8281a624e28c436e7ff8588ac3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaac669d8281a624e28c436e7ff8588ac3">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_DMAC_Channel_DeInit </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the content of registers corresponding to the channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>A channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable the DMAC channel 0 if it&#39;s priority equals 3 */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (3UL == <a class="code" href="group__group__dmac__channel__functions.html#gafc275a614e5307f13e86a1d0c07e0af5">Cy_DMAC_Channel_GetPriority</a>(DMAC, 0UL))</div><div class="line">    {    </div><div class="line">        <span class="keywordflow">if</span> (0UL != <a class="code" href="group__group__dmac__block__functions.html#ga447c513c25c23543cd578f2101d138ad">Cy_DMAC_GetActiveChannel</a>(DMAC))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__dmac__channel__functions.html#gae46d7a93ef597de25a50159b615fcaf1">Cy_DMAC_Channel_Disable</a>(DMAC, 0UL);</div><div class="line">            <a class="code" href="group__group__dmac__channel__functions.html#gaac669d8281a624e28c436e7ff8588ac3">Cy_DMAC_Channel_DeInit</a>(DMAC, 0UL);</div><div class="line"></div><div class="line">            <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">            <a class="code" href="group__group__dmac__block__functions.html#ga326f150b8c5856c36bf2f19672c03a71">Cy_DMAC_Disable</a>(DMAC);</div><div class="line">        }</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga0ea7589df07e40e6723dc7f992e6994b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0ea7589df07e40e6723dc7f992e6994b">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_SetDescriptor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_DMAC_Channel_SetDescriptor </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> const *&#160;</td>
          <td class="paramname"><em>descriptor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a descriptor as current for the specified DMACchannel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">descriptor</td><td>This is the descriptor to be associated with the channel. For CAT1C devices this pointer needs to point to 32 byte aligned structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">    #define DATA_COUNT (8UL)</span></div><div class="line">    <span class="comment">/* Scenario: Initialize a 1D descriptor */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> descriptor;</div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> nextDescriptor;</div><div class="line">    uint32_t src[DATA_COUNT];</div><div class="line">    uint32_t dst[DATA_COUNT];</div><div class="line">    </div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__config__t.html">cy_stc_dmac_descriptor_config_t</a> descriptor_cfg = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__dmac__enums.html#gga016be77931e116644c70e934101dd7c3ab796353bb8bb6f244bb8f6d94d002396">CY_DMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__dmac__enums.html#gga0e57c8ab013d71005b81e60c2c4ee7a9acbff6554ce23780e0fcf2af9e97816cc">CY_DMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .dataSize = <a class="code" href="group__group__dmac__enums.html#ggac2fda05300faa05ecfc118f22ed2a3c5ad4112bd05bdc21a993b63b0957bfacf8">CY_DMAC_WORD</a>,</div><div class="line">        .srcTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .dstTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__dmac__enums.html#ggafc067b535081b9cd83fa29b9e68b002ca700cc18061eb5de2f16f3dc1ee96fbe8">CY_DMAC_1D_TRANSFER</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATA_COUNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">    };</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__descriptor__functions.html#gad4204ef079b02d9afdd9328f0cd461f9">Cy_DMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Setup and enable the DMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__channel__config__t.html">cy_stc_dmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#a01cab162709493ed756b6cb21219ff51">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#ade9585ff561af6ad292932293e0bd15d">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__channel__functions.html#ga7b508e6cc332b4d009bf9b09ed6529b3">Cy_DMAC_Channel_Init</a>(DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga0ea7589df07e40e6723dc7f992e6994b">Cy_DMAC_Channel_SetDescriptor</a>(DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga4e68ab04d5de2d6a1b31779741aa64db">Cy_DMAC_Channel_SetPriority</a>(DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gab39e11c3ad72ebfd07cdd9840385769b">Cy_DMAC_Channel_Enable</a>(DMAC, 0UL);</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__block__functions.html#ga3f45f389340c3282c59d6ffe6e5040b5">Cy_DMAC_Enable</a>(DMAC);</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<span class="keyword">true</span> != <a class="code" href="group__group__dmac__channel__functions.html#ga4423c4dbc11bb51cb622e95fb593ee9c">Cy_DMAC_Channel_IsEnabled</a>(DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab39e11c3ad72ebfd07cdd9840385769b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab39e11c3ad72ebfd07cdd9840385769b">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_DMAC_Channel_Enable </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables a DMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">    #define DATA_COUNT (8UL)</span></div><div class="line">    <span class="comment">/* Scenario: Initialize a 1D descriptor */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> descriptor;</div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> nextDescriptor;</div><div class="line">    uint32_t src[DATA_COUNT];</div><div class="line">    uint32_t dst[DATA_COUNT];</div><div class="line">    </div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__config__t.html">cy_stc_dmac_descriptor_config_t</a> descriptor_cfg = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__dmac__enums.html#gga016be77931e116644c70e934101dd7c3ab796353bb8bb6f244bb8f6d94d002396">CY_DMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__dmac__enums.html#gga0e57c8ab013d71005b81e60c2c4ee7a9acbff6554ce23780e0fcf2af9e97816cc">CY_DMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .dataSize = <a class="code" href="group__group__dmac__enums.html#ggac2fda05300faa05ecfc118f22ed2a3c5ad4112bd05bdc21a993b63b0957bfacf8">CY_DMAC_WORD</a>,</div><div class="line">        .srcTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .dstTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__dmac__enums.html#ggafc067b535081b9cd83fa29b9e68b002ca700cc18061eb5de2f16f3dc1ee96fbe8">CY_DMAC_1D_TRANSFER</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATA_COUNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">    };</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__descriptor__functions.html#gad4204ef079b02d9afdd9328f0cd461f9">Cy_DMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Setup and enable the DMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__channel__config__t.html">cy_stc_dmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#a01cab162709493ed756b6cb21219ff51">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#ade9585ff561af6ad292932293e0bd15d">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__channel__functions.html#ga7b508e6cc332b4d009bf9b09ed6529b3">Cy_DMAC_Channel_Init</a>(DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga0ea7589df07e40e6723dc7f992e6994b">Cy_DMAC_Channel_SetDescriptor</a>(DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga4e68ab04d5de2d6a1b31779741aa64db">Cy_DMAC_Channel_SetPriority</a>(DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gab39e11c3ad72ebfd07cdd9840385769b">Cy_DMAC_Channel_Enable</a>(DMAC, 0UL);</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__block__functions.html#ga3f45f389340c3282c59d6ffe6e5040b5">Cy_DMAC_Enable</a>(DMAC);</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<span class="keyword">true</span> != <a class="code" href="group__group__dmac__channel__functions.html#ga4423c4dbc11bb51cb622e95fb593ee9c">Cy_DMAC_Channel_IsEnabled</a>(DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gae46d7a93ef597de25a50159b615fcaf1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae46d7a93ef597de25a50159b615fcaf1">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_DMAC_Channel_Disable </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables a DMACchannel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable the DMAC channel 0 if it&#39;s priority equals 3 */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (3UL == <a class="code" href="group__group__dmac__channel__functions.html#gafc275a614e5307f13e86a1d0c07e0af5">Cy_DMAC_Channel_GetPriority</a>(DMAC, 0UL))</div><div class="line">    {    </div><div class="line">        <span class="keywordflow">if</span> (0UL != <a class="code" href="group__group__dmac__block__functions.html#ga447c513c25c23543cd578f2101d138ad">Cy_DMAC_GetActiveChannel</a>(DMAC))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__dmac__channel__functions.html#gae46d7a93ef597de25a50159b615fcaf1">Cy_DMAC_Channel_Disable</a>(DMAC, 0UL);</div><div class="line">            <a class="code" href="group__group__dmac__channel__functions.html#gaac669d8281a624e28c436e7ff8588ac3">Cy_DMAC_Channel_DeInit</a>(DMAC, 0UL);</div><div class="line"></div><div class="line">            <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">            <a class="code" href="group__group__dmac__block__functions.html#ga326f150b8c5856c36bf2f19672c03a71">Cy_DMAC_Disable</a>(DMAC);</div><div class="line">        }</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga4423c4dbc11bb51cb622e95fb593ee9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4423c4dbc11bb51cb622e95fb593ee9c">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_IsEnabled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE bool Cy_DMAC_Channel_IsEnabled </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether a DMAC channel is in the enabled state. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">    #define DATA_COUNT (8UL)</span></div><div class="line">    <span class="comment">/* Scenario: Initialize a 1D descriptor */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> descriptor;</div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> nextDescriptor;</div><div class="line">    uint32_t src[DATA_COUNT];</div><div class="line">    uint32_t dst[DATA_COUNT];</div><div class="line">    </div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__config__t.html">cy_stc_dmac_descriptor_config_t</a> descriptor_cfg = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__dmac__enums.html#gga016be77931e116644c70e934101dd7c3ab796353bb8bb6f244bb8f6d94d002396">CY_DMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__dmac__enums.html#gga0e57c8ab013d71005b81e60c2c4ee7a9acbff6554ce23780e0fcf2af9e97816cc">CY_DMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .dataSize = <a class="code" href="group__group__dmac__enums.html#ggac2fda05300faa05ecfc118f22ed2a3c5ad4112bd05bdc21a993b63b0957bfacf8">CY_DMAC_WORD</a>,</div><div class="line">        .srcTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .dstTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__dmac__enums.html#ggafc067b535081b9cd83fa29b9e68b002ca700cc18061eb5de2f16f3dc1ee96fbe8">CY_DMAC_1D_TRANSFER</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATA_COUNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">    };</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__descriptor__functions.html#gad4204ef079b02d9afdd9328f0cd461f9">Cy_DMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Setup and enable the DMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__channel__config__t.html">cy_stc_dmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#a01cab162709493ed756b6cb21219ff51">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#ade9585ff561af6ad292932293e0bd15d">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__channel__functions.html#ga7b508e6cc332b4d009bf9b09ed6529b3">Cy_DMAC_Channel_Init</a>(DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga0ea7589df07e40e6723dc7f992e6994b">Cy_DMAC_Channel_SetDescriptor</a>(DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga4e68ab04d5de2d6a1b31779741aa64db">Cy_DMAC_Channel_SetPriority</a>(DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gab39e11c3ad72ebfd07cdd9840385769b">Cy_DMAC_Channel_Enable</a>(DMAC, 0UL);</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__block__functions.html#ga3f45f389340c3282c59d6ffe6e5040b5">Cy_DMAC_Enable</a>(DMAC);</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<span class="keyword">true</span> != <a class="code" href="group__group__dmac__channel__functions.html#ga4423c4dbc11bb51cb622e95fb593ee9c">Cy_DMAC_Channel_IsEnabled</a>(DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga4e68ab04d5de2d6a1b31779741aa64db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4e68ab04d5de2d6a1b31779741aa64db">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_SetPriority()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_DMAC_Channel_SetPriority </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>priority</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The function is used to set a priority for the DMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">priority</td><td>The priority to be set for the DMAC channel. The allowed values are 0,1,2,3.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">    #define DATA_COUNT (8UL)</span></div><div class="line">    <span class="comment">/* Scenario: Initialize a 1D descriptor */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> descriptor;</div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> nextDescriptor;</div><div class="line">    uint32_t src[DATA_COUNT];</div><div class="line">    uint32_t dst[DATA_COUNT];</div><div class="line">    </div><div class="line">    <a class="code" href="structcy__stc__dmac__descriptor__config__t.html">cy_stc_dmac_descriptor_config_t</a> descriptor_cfg = </div><div class="line">    {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__dmac__enums.html#gga016be77931e116644c70e934101dd7c3ab796353bb8bb6f244bb8f6d94d002396">CY_DMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__dmac__enums.html#gga0e57c8ab013d71005b81e60c2c4ee7a9acbff6554ce23780e0fcf2af9e97816cc">CY_DMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__dmac__enums.html#gga78bb44cea66b230aadd012c5bae864a3a274e048caf530edf7ef6159face7c486">CY_DMAC_DESCR</a>,</div><div class="line">        .dataSize = <a class="code" href="group__group__dmac__enums.html#ggac2fda05300faa05ecfc118f22ed2a3c5ad4112bd05bdc21a993b63b0957bfacf8">CY_DMAC_WORD</a>,</div><div class="line">        .srcTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .dstTransferSize = <a class="code" href="group__group__dmac__enums.html#gga678295e9e6a31ad41feab278d0faf4d1a108838a4e9ea224b4a471593b6484471">CY_DMAC_TRANSFER_SIZE_WORD</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__dmac__enums.html#ggafc067b535081b9cd83fa29b9e68b002ca700cc18061eb5de2f16f3dc1ee96fbe8">CY_DMAC_1D_TRANSFER</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATA_COUNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">    };</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__descriptor__functions.html#gad4204ef079b02d9afdd9328f0cd461f9">Cy_DMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Setup and enable the DMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__dmac__channel__config__t.html">cy_stc_dmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#a01cab162709493ed756b6cb21219ff51">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__dmac__channel__config__t.html#ade9585ff561af6ad292932293e0bd15d">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__enums.html#gga67fe9048608517c9cdebbe0372866eb5a5c4b9c1a66c7776ddc98a5b3dedac160">CY_DMAC_SUCCESS</a> != <a class="code" href="group__group__dmac__channel__functions.html#ga7b508e6cc332b4d009bf9b09ed6529b3">Cy_DMAC_Channel_Init</a>(DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga0ea7589df07e40e6723dc7f992e6994b">Cy_DMAC_Channel_SetDescriptor</a>(DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga4e68ab04d5de2d6a1b31779741aa64db">Cy_DMAC_Channel_SetPriority</a>(DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gab39e11c3ad72ebfd07cdd9840385769b">Cy_DMAC_Channel_Enable</a>(DMAC, 0UL);</div><div class="line">    </div><div class="line">    <a class="code" href="group__group__dmac__block__functions.html#ga3f45f389340c3282c59d6ffe6e5040b5">Cy_DMAC_Enable</a>(DMAC);</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (<span class="keyword">true</span> != <a class="code" href="group__group__dmac__channel__functions.html#ga4423c4dbc11bb51cb622e95fb593ee9c">Cy_DMAC_Channel_IsEnabled</a>(DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gafc275a614e5307f13e86a1d0c07e0af5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafc275a614e5307f13e86a1d0c07e0af5">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetPriority()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_DMAC_Channel_GetPriority </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the priority of the DMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The priority of the channel.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable the DMAC channel 0 if it&#39;s priority equals 3 */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (3UL == <a class="code" href="group__group__dmac__channel__functions.html#gafc275a614e5307f13e86a1d0c07e0af5">Cy_DMAC_Channel_GetPriority</a>(DMAC, 0UL))</div><div class="line">    {    </div><div class="line">        <span class="keywordflow">if</span> (0UL != <a class="code" href="group__group__dmac__block__functions.html#ga447c513c25c23543cd578f2101d138ad">Cy_DMAC_GetActiveChannel</a>(DMAC))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__dmac__channel__functions.html#gae46d7a93ef597de25a50159b615fcaf1">Cy_DMAC_Channel_Disable</a>(DMAC, 0UL);</div><div class="line">            <a class="code" href="group__group__dmac__channel__functions.html#gaac669d8281a624e28c436e7ff8588ac3">Cy_DMAC_Channel_DeInit</a>(DMAC, 0UL);</div><div class="line"></div><div class="line">            <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">            <a class="code" href="group__group__dmac__block__functions.html#ga326f150b8c5856c36bf2f19672c03a71">Cy_DMAC_Disable</a>(DMAC);</div><div class="line">        }</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga468ad1b43f0a513ad9a44540c6c74d7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga468ad1b43f0a513ad9a44540c6c74d7d">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetCurrentSrcAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void * Cy_DMAC_Channel_GetCurrentSrcAddress </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the source address being used for the current transfer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the pointer to the source of transfer.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the arrays are not in use before reading/modifying */</span></div><div class="line">    </div><div class="line">    uint32_t src[16];</div><div class="line">    uint32_t dst[16];</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src != <a class="code" href="group__group__dmac__channel__functions.html#ga468ad1b43f0a513ad9a44540c6c74d7d">Cy_DMAC_Channel_GetCurrentSrcAddress</a>(DMAC, 0UL)) &amp;&amp;</div><div class="line">        ((<span class="keywordtype">void</span>*) dst != <a class="code" href="group__group__dmac__channel__functions.html#ga8926ea9fbc04fb333847315e95616857">Cy_DMAC_Channel_GetCurrentDstAddress</a>(DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Read the dst/modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga8926ea9fbc04fb333847315e95616857"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8926ea9fbc04fb333847315e95616857">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetCurrentDstAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void * Cy_DMAC_Channel_GetCurrentDstAddress </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the destination address being used for the current transfer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the pointer to the destination of transfer.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the arrays are not in use before reading/modifying */</span></div><div class="line">    </div><div class="line">    uint32_t src[16];</div><div class="line">    uint32_t dst[16];</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src != <a class="code" href="group__group__dmac__channel__functions.html#ga468ad1b43f0a513ad9a44540c6c74d7d">Cy_DMAC_Channel_GetCurrentSrcAddress</a>(DMAC, 0UL)) &amp;&amp;</div><div class="line">        ((<span class="keywordtype">void</span>*) dst != <a class="code" href="group__group__dmac__channel__functions.html#ga8926ea9fbc04fb333847315e95616857">Cy_DMAC_Channel_GetCurrentDstAddress</a>(DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Read the dst/modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga365daa47786294138cded1ab197188ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga365daa47786294138cded1ab197188ed">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetCurrentXloopIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_DMAC_Channel_GetCurrentXloopIndex </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current transfer X-loop index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the current transfer X-loop index.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the current indexes are greater than a desired </span></div><div class="line"><span class="comment">     * data source item before modifying.</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    </div><div class="line">    uint32_t src[16][16];</div><div class="line">    uint32_t x = 7;</div><div class="line">    uint32_t y = 8;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src == <a class="code" href="group__group__dmac__channel__functions.html#ga468ad1b43f0a513ad9a44540c6c74d7d">Cy_DMAC_Channel_GetCurrentSrcAddress</a>(DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (x &lt; <a class="code" href="group__group__dmac__channel__functions.html#ga365daa47786294138cded1ab197188ed">Cy_DMAC_Channel_GetCurrentXloopIndex</a>(DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (y &lt; <a class="code" href="group__group__dmac__channel__functions.html#ga72778e6c03802db725de390a07fa723a">Cy_DMAC_Channel_GetCurrentYloopIndex</a>(DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga72778e6c03802db725de390a07fa723a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga72778e6c03802db725de390a07fa723a">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetCurrentYloopIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_DMAC_Channel_GetCurrentYloopIndex </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current transfer X-loop index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the current transfer X-loop index.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the current indexes are greater than a desired </span></div><div class="line"><span class="comment">     * data source item before modifying.</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    </div><div class="line">    uint32_t src[16][16];</div><div class="line">    uint32_t x = 7;</div><div class="line">    uint32_t y = 8;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src == <a class="code" href="group__group__dmac__channel__functions.html#ga468ad1b43f0a513ad9a44540c6c74d7d">Cy_DMAC_Channel_GetCurrentSrcAddress</a>(DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (x &lt; <a class="code" href="group__group__dmac__channel__functions.html#ga365daa47786294138cded1ab197188ed">Cy_DMAC_Channel_GetCurrentXloopIndex</a>(DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (y &lt; <a class="code" href="group__group__dmac__channel__functions.html#ga72778e6c03802db725de390a07fa723a">Cy_DMAC_Channel_GetCurrentYloopIndex</a>(DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gafef0482f395c9f32a193e75edfd22c79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafef0482f395c9f32a193e75edfd22c79">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetCurrentDescriptor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="structcy__stc__dmac__descriptor__t.html">cy_stc_dmac_descriptor_t</a> * Cy_DMAC_Channel_GetCurrentDescriptor </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the descriptor that is active in the channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The pointer to the descriptor associated with the channel.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Disable a descriptor */</span></div><div class="line">    <span class="keywordflow">if</span> (&amp;descriptor != <a class="code" href="group__group__dmac__channel__functions.html#gafef0482f395c9f32a193e75edfd22c79">Cy_DMAC_Channel_GetCurrentDescriptor</a>(DMAC, 0UL)) <span class="comment">/* Make sure it is not in use */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__dmac__descriptor__functions.html#ga831963e3b998915b7ebba67c701fa128">Cy_DMAC_Descriptor_DeInit</a>(&amp;descriptor);</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga7fe55ddff581132a9d35f03cd5941cf8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7fe55ddff581132a9d35f03cd5941cf8">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetInterruptStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_DMAC_Channel_GetInterruptStatus </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the interrupt status of the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The interrupt status, see <a class="el" href="group__group__dmac__macros__interrupt__masks.html">Interrupt Masks</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Need to check the  interrupt status regardless of whether it is enabled (masked) or not */</span></div><div class="line">    <span class="keywordflow">if</span> (CY_DMAC_INTR_MASK == <a class="code" href="group__group__dmac__channel__functions.html#ga7fe55ddff581132a9d35f03cd5941cf8">Cy_DMAC_Channel_GetInterruptStatus</a> (DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <span class="comment">/* The DMAC channel 0 interrupt is pending */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga31fbd71a93ff4332b8e8df56090f9423"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga31fbd71a93ff4332b8e8df56090f9423">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_ClearInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_DMAC_Channel_ClearInterrupt </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the interrupt status of the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">interrupt</td><td>The interrupt mask, see <a class="el" href="group__group__dmac__macros__interrupt__masks.html">Interrupt Masks</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Inside the interrupt service routine for DMAC channel 0: */</span>    </div><div class="line">    uint32_t interrupt = <a class="code" href="group__group__dmac__channel__functions.html#ga586bd262ab7725b4588dde9516c88b1e">Cy_DMAC_Channel_GetInterruptStatusMasked</a>(DMAC, 0UL);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__macros__interrupt__masks.html#gafdba1f920225bf6f028437646a5613a0">CY_DMAC_INTR_COMPLETION</a> == interrupt)</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert completion interrupt handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Check for other interrupts */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Clear interrupts */</span></div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga31fbd71a93ff4332b8e8df56090f9423">Cy_DMAC_Channel_ClearInterrupt</a>(DMAC, 0UL, interrupt);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gae757bfd061a11f8fbad9057547620087"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae757bfd061a11f8fbad9057547620087">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_SetInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_DMAC_Channel_SetInterrupt </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the interrupt for the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">interrupt</td><td>The interrupt mask. See <a class="el" href="group__group__dmac__macros__interrupt__masks.html">Interrupt Masks</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable interrupts for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gae0485c56ffe98283f8b9326ee6d516ae">Cy_DMAC_Channel_SetInterruptMask</a> (DMAC, 0UL, CY_DMAC_INTR_MASK);</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Test the interrupt for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gae757bfd061a11f8fbad9057547620087">Cy_DMAC_Channel_SetInterrupt</a>(DMAC, 0UL, <a class="code" href="group__group__dmac__macros__interrupt__masks.html#gafdba1f920225bf6f028437646a5613a0">CY_DMAC_INTR_COMPLETION</a>);</div><div class="line">    <span class="comment">/* Now the interrupt should occur (if it is enabled, of course) */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable interrupts for DMAC channel 0 if it is enabled */</span></div><div class="line">    <span class="keywordflow">if</span> (CY_DMAC_INTR_MASK == <a class="code" href="group__group__dmac__channel__functions.html#ga5fd4fbeb489ac0c97168e67064d6693b">Cy_DMAC_Channel_GetInterruptMask</a>(DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__dmac__channel__functions.html#gae0485c56ffe98283f8b9326ee6d516ae">Cy_DMAC_Channel_SetInterruptMask</a> (DMAC, 0UL, 0UL);</div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga5fd4fbeb489ac0c97168e67064d6693b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5fd4fbeb489ac0c97168e67064d6693b">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_DMAC_Channel_GetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the interrupt mask value of the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The interrupt mask value. See <a class="el" href="group__group__dmac__macros__interrupt__masks.html">Interrupt Masks</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable interrupts for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gae0485c56ffe98283f8b9326ee6d516ae">Cy_DMAC_Channel_SetInterruptMask</a> (DMAC, 0UL, CY_DMAC_INTR_MASK);</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Test the interrupt for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gae757bfd061a11f8fbad9057547620087">Cy_DMAC_Channel_SetInterrupt</a>(DMAC, 0UL, <a class="code" href="group__group__dmac__macros__interrupt__masks.html#gafdba1f920225bf6f028437646a5613a0">CY_DMAC_INTR_COMPLETION</a>);</div><div class="line">    <span class="comment">/* Now the interrupt should occur (if it is enabled, of course) */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable interrupts for DMAC channel 0 if it is enabled */</span></div><div class="line">    <span class="keywordflow">if</span> (CY_DMAC_INTR_MASK == <a class="code" href="group__group__dmac__channel__functions.html#ga5fd4fbeb489ac0c97168e67064d6693b">Cy_DMAC_Channel_GetInterruptMask</a>(DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__dmac__channel__functions.html#gae0485c56ffe98283f8b9326ee6d516ae">Cy_DMAC_Channel_SetInterruptMask</a> (DMAC, 0UL, 0UL);</div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gae0485c56ffe98283f8b9326ee6d516ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae0485c56ffe98283f8b9326ee6d516ae">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_DMAC_Channel_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets an interrupt mask value for the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">interrupt</td><td>The interrupt mask, see <a class="el" href="group__group__dmac__macros__interrupt__masks.html">Interrupt Masks</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable interrupts for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gae0485c56ffe98283f8b9326ee6d516ae">Cy_DMAC_Channel_SetInterruptMask</a> (DMAC, 0UL, CY_DMAC_INTR_MASK);</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Test the interrupt for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#gae757bfd061a11f8fbad9057547620087">Cy_DMAC_Channel_SetInterrupt</a>(DMAC, 0UL, <a class="code" href="group__group__dmac__macros__interrupt__masks.html#gafdba1f920225bf6f028437646a5613a0">CY_DMAC_INTR_COMPLETION</a>);</div><div class="line">    <span class="comment">/* Now the interrupt should occur (if it is enabled, of course) */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable interrupts for DMAC channel 0 if it is enabled */</span></div><div class="line">    <span class="keywordflow">if</span> (CY_DMAC_INTR_MASK == <a class="code" href="group__group__dmac__channel__functions.html#ga5fd4fbeb489ac0c97168e67064d6693b">Cy_DMAC_Channel_GetInterruptMask</a>(DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__dmac__channel__functions.html#gae0485c56ffe98283f8b9326ee6d516ae">Cy_DMAC_Channel_SetInterruptMask</a> (DMAC, 0UL, 0UL);</div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga586bd262ab7725b4588dde9516c88b1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga586bd262ab7725b4588dde9516c88b1e">&#9670;&nbsp;</a></span>Cy_DMAC_Channel_GetInterruptStatusMasked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_DMAC_Channel_GetInterruptStatusMasked </td>
          <td>(</td>
          <td class="paramtype">DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the logical AND of the corresponding INTR and INTR_MASK fields in a single-load operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware DMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The masked interrupt status. See <a class="el" href="group__group__dmac__macros__interrupt__masks.html">Interrupt Masks</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Inside the interrupt service routine for DMAC channel 0: */</span>    </div><div class="line">    uint32_t interrupt = <a class="code" href="group__group__dmac__channel__functions.html#ga586bd262ab7725b4588dde9516c88b1e">Cy_DMAC_Channel_GetInterruptStatusMasked</a>(DMAC, 0UL);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__dmac__macros__interrupt__masks.html#gafdba1f920225bf6f028437646a5613a0">CY_DMAC_INTR_COMPLETION</a> == interrupt)</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert completion interrupt handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Check for other interrupts */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Clear interrupts */</span></div><div class="line">    <a class="code" href="group__group__dmac__channel__functions.html#ga31fbd71a93ff4332b8e8df56090f9423">Cy_DMAC_Channel_ClearInterrupt</a>(DMAC, 0UL, interrupt);</div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
